package test;

/**
 * @Author: Wyndem
 * @Description: 鸭子总类
 * @Date: Created in  2019-01-20 18:11
 * @Modified By:
 */
public abstract class Duck {

    private    FlyPattern flyPattern;

    public void setFlyPattern(FlyPattern flyPattern) {
        this.flyPattern = flyPattern;
    }

    public  void fly(){
        flyPattern.fly();

    }


    abstract  public void display();

}
